package com.lc.auth.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lc.model.system.SysRole;
import com.lc.vo.system.AssginRoleVo;
import com.lc.vo.system.SysRoleQueryVo;

import java.util.Map;

public interface SysRoleService extends IService<SysRole> {

    //分页条件查询
    Page<SysRole> pageQueryRole(Long page, Long limit, SysRoleQueryVo sysRoleQueryVo);

    /**
     * 根据用户获取角色数据
     * @param userId
     * @return
     */
    Map<String, Object> findRoleByAdminId(Long userId);

    /**
     * 分配角色
     * @param assginRoleVo
     */
    void doAssign(AssginRoleVo assginRoleVo);
}
